package com.spider.admin.service.agent;

import com.spider.admin.exception.SpiderException;
import com.spider.admin.http.entity.PageResult;
import com.spider.admin.store.primary.model.AgentConf;

import java.util.Date;

public interface AgentConfService {
    PageResult<AgentConf> queryConfList(Integer curPage, Integer pageSize, String confType, String belongId, String confVersion, Date updateTime) throws SpiderException;

    PageResult<AgentConf> queryRunConfList(Integer curPage, Integer pageSize, String confType, String belongId, String confVersion, Date updateTime) throws SpiderException;

    String createGlobalConfContext() throws SpiderException;

    String createServerConfContext(String serverId) throws SpiderException;

    String createAppConfContext(String appId) throws SpiderException;

    int deleteAgentConf(String confId) throws SpiderException;

    int updateAgentConfStatus(String confId, int confStatus) throws SpiderException;
}
